package com.class06.chain;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;
//@WebFilter("/testFilter")
//  testFilter 过滤的目标资源
public class FilterC implements Filter {
//    alt + enter  实现接口中抽象方法
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("过滤器FilterC执行了");
        filterChain.doFilter(servletRequest, servletResponse);
    }
}
